<template>
  <div>
    <h2>我是动态组件2</h2>
  </div>
</template>

<script>
export default {
  name: "Dynamic2",
  activated() {
    console.log("动态组件2激活了");
  },
  deactivated() {
    console.log("动态组件2灭活了");
  },
  created() {
    console.log("动态组件2创建了");
  },
  destroyed() {
    console.log("动态组件2销毁了");
  },
};
</script>

<style>
</style>